//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package objects;

import java.util.Collection;
import java.util.LinkedHashMap;

public class NectarTrees {
    private static final LinkedHashMap<Integer, NectarTreeEntry> treesById = new LinkedHashMap();
    private static final LinkedHashMap<String, NectarTreeEntry> treesByName = new LinkedHashMap();

    public NectarTrees() {
    }

    public static void createNectarTreeEntry(String Name, Integer TimeMin, Integer FruitCount, String Tool, Integer Price) {
        NectarTreeEntry fe = new NectarTreeEntry(Name, TimeMin, FruitCount, Tool, Price, Integer.valueOf(treesById.size()), "Nectar");
        treesById.put(fe.getGlobalID(), fe);
        treesByName.put(fe.getName(), fe);
    }

    public static NectarTreeEntry getById(Integer id) {
        return (NectarTreeEntry)treesById.get(id);
    }

    public static NectarTreeEntry getByName(String name) {
        return (NectarTreeEntry)treesByName.get(name);
    }

    public static void clear() {
        treesById.clear();
        treesByName.clear();
    }

    public static Collection<NectarTreeEntry> get() {
        return treesById.values();
    }
}
